package com.ruoyi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import com.github.pagehelper.PageInfo;
import com.ruoyi.system.domain.SysTraining;
import com.ruoyi.system.domain.param.SysTrainingPageParam;
import com.ruoyi.system.domain.vo.SysTrainingVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/***
 *@title SysShopService
 *@description <TODO 培训管理——业务层>
 *@author 然子哥
 *@version 1.0.0
 *@create 2023/5/18 10:02
 **/
public interface ISysTrainingService extends IService<SysTraining>
{

    /**
     * 分页查询培训列表
     * @author 然子哥
     * @date 2023/5/18 10:20
     * @param page 页数
     * @param limit 每页限制条数
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.system.labor.entity.outside.SysShop>
     */
    IPage<SysTraining> selectPage(Long page, Long limit);

    /**
     * 修改培训文件
     * @author 然子哥
     * @date 2023/5/25 17:58
     * @param training 培训文件实体类
     * @return boolean
     */
    boolean updateTran(SysTraining training);

    boolean updateIsDeleted(Integer id);

    boolean submit(String fileName, String description, Integer projectId,Integer trainingCategoryId,MultipartFile file);
    boolean sort(Integer id ,Integer sort);

    boolean updateTraining(Integer id, String fileName, String description, Integer projectId, Integer trainingCategoryId, MultipartFile file);

    IPage<SysTrainingVo> select(SysTrainingPageParam param);

    SysTrainingVo selectById(Integer id);

    Boolean check(String fileName, Integer projectId,Integer id);

    List<SysTraining> getList();

}
